----------------------------
-- Simplistic Street
-- by Jammie Dodger
--
-- Project Started - October 20, 2009
-- Completion -None
----------------------------

local PANEL = {}

function PANEL:Init()
	self:SetTitle("Simplistic Street - Untitled")
	gui.EnableScreenClicker(true)
end

function PANEL:ShowHide()
	if(self:IsVisible()) then
		self:Close()
	else
		self:Show()
	end
end

function PANEL:Show(Override)
	if(!self:IsVisible()) then
		if(!Override) then
			gui.EnableScreenClicker(true)
		end
		self:SetVisible(true)
	end
end

function PANEL:Close(Override)
	if(self:IsVisible()) then
		if(!Override) then
			gui.EnableScreenClicker(false)
		end
		self:SetVisible(false)
	end
end

function PANEL:SetTitle(text, bool)
	if !bool then
		self.lblTitle:SetText("Simplistic Street - "..text)
	else
		self.lblTitle:SetText(text)
	end
end

function PANEL:Paint()
    surface.SetDrawColor(16, 16, 16, 220)
    surface.DrawRect(0, 0, self:GetWide(), self:GetTall())
end

vgui.Register("SSFrame", PANEL, "DFrame")